import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/home/home.vue'
import My from '@/views/home/my.vue'
import Cart from '@/views/home/cart.vue'
import Cla from '@/views/home/cla.vue'
import Index from '@/views/home/index.vue'
import Value from '@/views/home/value.vue'
import Ss from '@/views/ss.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/home/index' },
    {
      path: '/home',
      component: Home,children:[
            {
      path: 'index',
      component: Index,
    },
        {
      path: 'cla',
      component: Cla,
    },
        {
      path: 'cart',
      component: Cart,
    },
        {
      path: 'my',
      component: My,
    },
            {
      path: 'value',
      component: Value,
    },
      ]
    },
                {
      path: '/ss',
      component: Ss,
    },
  ],
})

export default router
